<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  
  <title>html-paragraph | Tao98</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="1.使用br标签在HTML中，我们可以使用br标签来实现换行。该标签具有单独使用的特点，即不需要闭合标签。 12这是第一行文字&lt;br&gt;这是第二行文字  2.使用p标签在HTML中，我们也可以使用p标签来实现换行。p标签是段落标签，它会自动将内容分段，并在段落之间添加空行。 12&lt;p&gt;这是第一段文字&lt;&#x2F;p&gt;&lt;p&gt;这是第二段文字&lt;&#x2F;p&gt; 3.">
<meta property="og:type" content="article">
<meta property="og:title" content="html-paragraph">
<meta property="og:url" content="https://wenlilili.gitee.io/tao98/2023/11/05/html-paragraph/index.html">
<meta property="og:site_name" content="Tao98">
<meta property="og:description" content="1.使用br标签在HTML中，我们可以使用br标签来实现换行。该标签具有单独使用的特点，即不需要闭合标签。 12这是第一行文字&lt;br&gt;这是第二行文字  2.使用p标签在HTML中，我们也可以使用p标签来实现换行。p标签是段落标签，它会自动将内容分段，并在段落之间添加空行。 12&lt;p&gt;这是第一段文字&lt;&#x2F;p&gt;&lt;p&gt;这是第二段文字&lt;&#x2F;p&gt; 3.">
<meta property="og:locale" content="en_US">
<meta property="article:published_time" content="2023-11-05T13:11:02.000Z">
<meta property="article:modified_time" content="2023-11-05T13:14:53.407Z">
<meta property="article:author" content="John Doe">
<meta name="twitter:card" content="summary">
  
    <link rel="alternate" href="/tao98/atom.xml" title="Tao98" type="application/atom+xml">
  
  
    <link rel="shortcut icon" href="/tao98/favicon.png">
  
  
    
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/typeface-source-code-pro@0.0.71/index.min.css">

  
  
<link rel="stylesheet" href="/tao98/css/style.css">

  
    
<link rel="stylesheet" href="/tao98/fancybox/jquery.fancybox.min.css">

  
  
<meta name="generator" content="Hexo 6.3.0"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/tao98/" id="logo">Tao98</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"><span class="fa fa-bars"></span></a>
        
          <a class="main-nav-link" href="/tao98/">Home</a>
        
          <a class="main-nav-link" href="/tao98/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
        
          <a class="nav-icon" href="/tao98/atom.xml" title="RSS Feed"><span class="fa fa-rss"></span></a>
        
        <a class="nav-icon nav-search-btn" title="Search"><span class="fa fa-search"></span></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="https://wenlilili.gitee.io/tao98"></form>
      </div>
    </div>
  </div>
</header>

      <div class="outer">
        <section id="main"><article id="post-html-paragraph" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  <div class="article-meta">
    <a href="/tao98/2023/11/05/html-paragraph/" class="article-date">
  <time class="dt-published" datetime="2023-11-05T13:11:02.000Z" itemprop="datePublished">2023-11-05</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="p-name article-title" itemprop="headline name">
      html-paragraph
    </h1>
  

      </header>
    
    <div class="e-content article-entry" itemprop="articleBody">
      
        <h2 id="1-使用br标签"><a href="#1-使用br标签" class="headerlink" title="1.使用br标签"></a>1.使用br标签</h2><p>在HTML中，我们可以使用br标签来实现换行。该标签具有单独使用的特点，<br>即不需要闭合标签。</p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">这是第一行文字<span class="tag">&lt;<span class="name">br</span>&gt;</span></span><br><span class="line">这是第二行文字</span><br></pre></td></tr></table></figure>

<h2 id="2-使用p标签"><a href="#2-使用p标签" class="headerlink" title="2.使用p标签"></a>2.使用p标签</h2><p>在HTML中，我们也可以使用p标签来实现换行。p标签是段落标签，它会自动将内容分段，并在段落之间添加空行。</p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">p</span>&gt;</span>这是第一段文字<span class="tag">&lt;/<span class="name">p</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">p</span>&gt;</span>这是第二段文字<span class="tag">&lt;/<span class="name">p</span>&gt;</span></span><br></pre></td></tr></table></figure>
<h2 id="3-使用div标签"><a href="#3-使用div标签" class="headerlink" title="3.使用div标签"></a>3.使用div标签</h2><p>我们还可以使用div标签来实现换行。div标签是块级标签，它可以将内容分块，并在块之间添加空行。</p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">div</span>&gt;</span>这是第一块文字<span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">div</span>&gt;</span>这是第二块文字<span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br></pre></td></tr></table></figure>
<p>两个div标签之间的空行就是换行的效果。</p>
<p>在HTML中，我们可以使用br标签、p标签和div标签来实现换行。这些方法各有特点，可以根据实际需求来选择使用。掌握这些方法，可以让我们的排版更加优美，内容更加清晰明了。</p>

      
    </div>
    <footer class="article-footer">
      <a data-url="https://wenlilili.gitee.io/tao98/2023/11/05/html-paragraph/" data-id="clolhwvwm0000zwrk5giy7zr0" data-title="html-paragraph" class="article-share-link"><span class="fa fa-share">Share</span></a>
      
      
      
    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/tao98/2023/11/08/old-C8T6-debug/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Newer</strong>
      <div class="article-nav-title">
        
          “老战友”STM32串口 调试感触
        
      </div>
    </a>
  
  
    <a href="/tao98/2023/11/03/Recommand-websites/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">Recommand-websites</div>
    </a>
  
</nav>

  
</article>


</section>
        
          <aside id="sidebar">
  
    

  
    

  
    
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/tao98/archives/2023/12/">December 2023</a></li><li class="archive-list-item"><a class="archive-list-link" href="/tao98/archives/2023/11/">November 2023</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Recent Posts</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/tao98/2023/12/10/12-10-post/">12-10-post 瑞萨推出第一代32位RISC-V CPU内核</a>
          </li>
        
          <li>
            <a href="/tao98/2023/11/29/11-29-post/">11-29-post 我国自主研发CPU上新</a>
          </li>
        
          <li>
            <a href="/tao98/2023/11/16/11-16-post/">11-16 post</a>
          </li>
        
          <li>
            <a href="/tao98/2023/11/12/11-12-post/">11-12-post</a>
          </li>
        
          <li>
            <a href="/tao98/2023/11/11/11-11-post/">11-11-post</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      
      &copy; 2023 John Doe<br>
      Powered by <a href="https://hexo.io/" target="_blank">Hexo</a><br>
      <script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
	  <span id="busuanzi_container_site_pv">  本站总访问量<span id="busuanzi_value_site_uv"></span>次</span>
	</div>
  </div>
</footer>

    </div>
    <nav id="mobile-nav">
  
    <a href="/tao98/" class="mobile-nav-link">Home</a>
  
    <a href="/tao98/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    


<script src="/tao98/js/jquery-3.6.4.min.js"></script>



  
<script src="/tao98/fancybox/jquery.fancybox.min.js"></script>




<script src="/tao98/js/script.js"></script>





  </div>
</body>
</html>